package cn.smdq.ch.upms.admin.pay.channel.param;

import cn.smdq.ch.upms.admin.pay.type.PayType;
import lombok.Data;

/**
 * @author shuimodanqing
 * create at:  2019/1/29  2:32 PM
 * @description 预支付回应
 */
@Data
public class PrePayResponse {

    private PayType payType;

    private Object response;

    private String requestParam;

    public PrePayResponse() {
    }

    public PrePayResponse(PayType payType, Object response, String param) {
        this.payType = payType;
        this.response = response;
    }


    public static class Builder {
        private PrePayResponse prePayResponse;

        public Builder() {
            this.prePayResponse = new PrePayResponse();
        }

        public Builder payType(PayType payType) {
            this.prePayResponse.payType = payType;
            return this;
        }

        public Builder response(Object response) {
            this.prePayResponse.response = response;
            return this;
        }

        public Builder requestParam(String requestParam) {
            this.prePayResponse.requestParam = requestParam;
            return this;
        }

        public PrePayResponse build() {
            return this.prePayResponse;
        }
    }
}
